<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动基本使用</title>
    <style>
        .one{
            width: 300px;
            height: 300px;
            background-color: red;
        }
        .two{
            width: 300px;
            height: 300px;
            background-color: blue;
        }

        .one_float{
            width: 200px;
            height: 200px;
            background-color: pink;
            float: left;
        }
        .two_float{
            width: 200px;
            height: 200px;
            background-color: green;
            float: right;
        }
    </style>
</head>
<body>
    <div class="one_float"></div>
    <div class="two_float"></div>

    <div class="one"></div>
    <div class="two"></div>


</body>
</html>